package com.settlement.system.model.entity.common;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.HeadFontStyle;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.alibaba.excel.annotation.write.style.HeadStyle;
import com.settlement.system.converter.RefundYgConfigConvert;
import jakarta.validation.constraints.NotNull;

import java.io.Serializable;
/**
 * 稽核平台优购退款配置
 * @author xiaochuan
 * @since 2020-05-26
 */
@ExcelIgnoreUnannotated
@HeadStyle(fillBackgroundColor = 9,fillForegroundColor = 9)
@HeadRowHeight(value = 20)
@HeadFontStyle(fontHeightInPoints = 11)
public class TblAcsYgRefundConfig extends BaseModel implements Serializable {


    /**
     * 退款类型编码(1未发货退款  2退货退款 5 拒收退款 9缺货退款 11取消发货退款)
     */
    @ExcelProperty(index = 0,value = "退款类型编码")
    @NotNull(message = "退款类型编码不能为空")
    private Integer backAmountType;

    /**
     * 退款类型名称(1未发货退款 2退货退款 5 拒收退款 9缺货退款 11取消发货退款)
     */
    @ExcelProperty(index = 1, value = "退款类型名称")
    @NotNull(message = "退款类型名称不能为空")
    private String backAmountName;

    /**
     * 退货类型编码(QC 质检 RF仅退款 EX异常售后 AD差异调整)
     */
    private String backGoodsType;

    /**
     * 退货类型名称(QC 质检 RF仅退款 EX异常售后 AD差异调整)
     */
    private String backGoodsName;

    /**
     * 是否稽核（0否1是）
     */
    @ExcelProperty(value = "稽核状态",converter = RefundYgConfigConvert.class)
    @ExcelIgnore
    private Integer status;


    public Integer getBackAmountType() {
        return backAmountType;
    }

    public void setBackAmountType(Integer backAmountType) {
        this.backAmountType = backAmountType;
    }

    public String getBackAmountName() {
        return backAmountName;
    }

    public void setBackAmountName(String backAmountName) {
        this.backAmountName = backAmountName;
    }

    public String getBackGoodsType() {
        return backGoodsType;
    }

    public void setBackGoodsType(String backGoodsType) {
        this.backGoodsType = backGoodsType;
    }

    public String getBackGoodsName() {
        return backGoodsName;
    }

    public void setBackGoodsName(String backGoodsName) {
        this.backGoodsName = backGoodsName;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

}
